package com.xju.ikun.service.serviceImpl;

import com.xju.ikun.bean.SonglistBean;
import com.xju.ikun.dao.SonglistDao;
import com.xju.ikun.service.SonglistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SonglistServiceImpl implements SonglistService {
    @Autowired
    private SonglistDao songlistDao;

    @Override
    public List<SonglistBean> findByListid(int listid) {
        return songlistDao.findByListid(listid);
    }

    @Override
    public SonglistBean findByListidSongid(int listid, int songid) {
        return songlistDao.findByListidSongid(listid,songid);
    }
    @Override
    public int insertSonglistBean(SonglistBean songlistBean) {
        return songlistDao.insertSonglistBean(songlistBean);
    }

    @Override
    public int deleteByPrimaryKey(int songlist_id) {
        return songlistDao.deleteByPrimaryKey(songlist_id);
    }

}
